import { cateListApi } from '../api/art.js'
export default {
  namespaced: true,
  state () {
    return {
      artList: []
    }
  },
  mutations: {
    setArtList (state, list) {
      state.artList = list
      console.log(list)
    }
  },
  actions: {
    async AgetArtList ({ commit }) {
      const res = await cateListApi()
      commit('setArtList', res.data.data)
    }
  },
  getters: {}

}
